#pragma once
#ifndef MISC_HPP
#define MISC_HPP
#include <string>
#include <vector>

namespace misc {

class IpAddr {
public:
	IpAddr() : addr(""), port(0) {};
	IpAddr(const std::string &_addr, int _port) : addr(_addr), port(_port) {};
	~IpAddr() {};
	inline const std::string &getAddr() { return addr; }
	inline int getPort() { return port; } //TODO possible not int?
	inline void setAddr(const std::string &_addr) { addr=_addr; }
	inline void setPort(int _port) { port=_port; } //TODO possible not int?
protected:
	std::string addr;
	int port;
};

typedef std::vector<misc::IpAddr> IpAddrList;
};

#endif
